package AnimalDemo;

public class Dog extends Animal implements ISwim,IRun{
    public Dog(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println("吃狗粮");
    }

    @Override
    public void run() {
        System.out.println("狗跑步");
    }

    @Override
    public void swim() {
        System.out.println("狗刨");
    }
}
